<!DOCTYPE html>
<html lang="zh">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
	<title>系统管理员后台 - 家校互动系统</title>
	<link rel="shortcut icon" href="favicon.ico" />
	<link href="__TMPL__css/alice.css" rel="stylesheet" type="text/css" />
	<link href="__TMPL__css/style.css" rel="stylesheet" type="text/css" />
	<script src="__TMPL__js/jquery.min.js"></script>
	<script src="__TMPL__js/head.js"></script>
	<!--[if lt IE 9]>
	<script src="__TMPL__js/html5.js"></script>
	<![endif]-->
    
    
<script type="text/javascript">
	
$(function(){
	
	$('#school_id').change(function(){
		var sid = $("#school_id").val();
		$.ajax({
			type: "POST",
			url: "__URL__/showlevel",
			data: {
					"school_id":sid,
				  },
			success: function(msg){
				$('#level_id').html(msg);	
			}
		});		
	});

	$('#level_id').change(function(){
		var sid = $("#school_id").val();
		var lid = $("#level_id").val();
		$.ajax({
			type: "POST",
			url: "__URL__/showclass",
			data: {
					"school_id":sid,
					"level_id":lid,
				  },
			success: function(msg){
				$('#class_id').html(msg);	
			}
		});		
	});





		
})
    
</script>
    
    
    
    
    
    
    
    
</head> 
<body onload="iframe_height()">
<div id="bodyheight"><!-- 设定iframe框架 --> 

	<a class="btn_back" href="__APP__/Index/nav" style="width:20%">用户管理</a> <!-- 当前位置 返回按钮 -->
	
	<!-- 内容框架开始 -->
	<div class="main padd6">
		<div class="tab_main clear">
			<a href="__URL__/lists" class="cur">用户管理</a>
			<a href="__URL__/import">导入用户</a>
		</div>
	
		<div class="realmain padd11 clear">
		
			<!-- 头部工具栏开始 -->
			<div class="main-nav" style="height:80px; line-height:80px;">
				<form class="ui-form" name="search_content" method="post" action="__URL__/lists" id="search_content">
					<div class="ui-form-item">
						<label for="" class="ui-label">登陆账号：</label><input class="ui-input" size="9" type="text" name="username" value="{$username}">
					</div>
					<div class="ui-form-item">
						<label for="" class="ui-label">审核状态：</label>
						<select id="" name="shenhe">
 							<option value="" >全部</option>                       
							<option value="1"  <eq name="shenhe" value="1">selected</eq> >
							已审核
							</option>
							<option value="0" <eq name="shenhe" value="0">selected</eq> >
							未审核
							</option>
                            
						</select>
					</div>
                    <div class="ui-form-item">
						<label for="" class="ui-label">手机号码：</label><input class="ui-input" size="11" type="text" name="SJHM" value="{$SJHM}">
					</div>
                    <div class="ui-form-item" style="width:50%"></div>
                    
                    
                    <div class="ui-form-item">
						<label for="" class="ui-label">学校：</label>
                        {$school}
					</div>                    
                    
                     <div class="ui-form-item" style=" width:250px;">
						<label for="" class="ui-label">用户类型：</label>
						{$isteacher}{$isparent}{$isschool}
					</div>   
                    
                    
					<div class="ui-form-item">
						<input type="submit" class="ui-button btn-search" value="搜索">
					</div>
				</form>
				
				<a href="__URL__/add" class="ui-button btn-green flright" style="margin:7px;"><span class="icolink icoadd">添加用户</span></a>
			</div>
			<!-- 头部工具栏结束 -->
			
			<!-- 列表内容开始 -->
			<div class="content">
				<form name="content_form" id="content_form" action="" method="post">
				<table class="ui-table">
					<thead>
						<tr>
							<th><input type="checkbox" value="" id="check_box" onclick="selectall('ids[]');"></th>
							<th>ID</th>
							<th><p >登录帐号</p></th>
							<th>角色</th>
                            <th>创建时间</th>
							<th>手机号码</th>
							<th>状态</th>
							<th>操作</th>
						</tr>
					</thead><!-- 表头可选 -->
					<tbody>
                    <volist name="list" id="vo">
						<tr>
							<td><input class="inputcheckbox " name="ids[]" value="{$vo.id}" type="checkbox"></td>
							<td>{$vo.id}</td>
							<td>{$vo.username}</td>
							<td>{$vo.is_teacher|getis_teacher}&nbsp;&nbsp;{$vo.is_school|getis_school}&nbsp;&nbsp;{$vo.is_parent|getis_parent}</td>
							<td><neq name="vo.register_time" value="">{$vo.register_time|date='Y-m-d',###}</neq></td>
                            <td>{$vo.SJHM}</td>
							<td>{$vo.status|getstatus}</td>
							<td><a href="__URL__/edit/id/{$vo.id}">修改</a>&nbsp;&nbsp;<a href="__URL__/delete/id/{$vo.id}">删除</a></td>
						</tr>
                     </volist>
					</tbody>
				</table>
				
				<div class="content_foot clear">
					<a href="#" class="ui-button btn-grey" onclick="content_form.action='__URL__/teacher_alldelete';return confirm_delete()"  style="float:left;display:block;margin-right:10px"><span class="icolink icodel">删除</span></a>
					<a href="#" class="ui-button btn-grey" onclick="content_form.action='__URL__/teacher_allshenhe';return confirm_doing()"  style="float:left;display:block;"><span class="icolink icoadd">审核</span></a>
					<div id="pages">
						{$page}
				  </div>
				</div>
				</form>
			</div>
			<!-- 列表内容结束 -->
			
		</div>
	</div>
	<!-- 内容框架结束 -->
</div>



<iframe width='0' id='top_src' height='0' src=''></iframe>
<script src="__TMPL__js/foot.js"></script>
</body>
</html>